/*
 * Copyright (c) 2012,东方口岸科技有限公司
 * All rights reserved.
 * 文件名称：UserMapper.java
 * 摘    要：
 * 版本：1.0
 * 作    者：fengzhiyong
 */
package com.cneport.transfer.router.support.mapper;

import java.util.List;

import com.cneport.transfer.router.model.User;

public interface UserMapper {
    /**
     * @Name: queryUserList * @Descrption:query User list info
     * @Author: fengzhiyong
     * @Version: V1.0
     * @CreateDate: 2012-6-11
     * @param user
     * @return List<User>
     */
    List<User> queryUserList(String clientId);

    /**
     * @Name: getUserList * @Descrption:query User list info
     * @Author: wudi
     * @Version: V1.0
     * @CreateDate: 2012-7-17
     * @param user
     * @return List<User>
     */
    List<User> getUserList(User user);
    
    /**
     * @Author: wudi
     * @param user
     * @return int 
     */
    int countUserList(User user);
    
    User getUserByClientId(String clientId);
    /**
     * @Name: queryUserList * @Descrption:query User list info
     * @Author: fengzhiyong
     * @Version: V1.0
     * @CreateDate: 2012-6-11
     * @param user
     * @return User
     */
    User queryUser(String clientId);

    /**
     * @Name: insertUser 　* @Descrption:add User info to database
     * @Author: fengzhiyong
     * @Version: V1.0
     * @CreateDate: 2012-6-11
     * @param User
     * @return int
     */
    int insertUser(User user);

    /**
     * @Name: deleteUser 　* @Descrption:delete User with database
     * @Author: fengzhiyong
     * @Version: V1.0
     * @CreateDate: 2012-6-11
     * @param User
     * @return int
     */
    int deleteUser(String clientId);

    /**
     * @Name: updateUser 　* @Descrption:update User with databse
     * @Author: fengzhiyong
     * @Version: V1.0
     * @CreateDate: 2012-6-11
     * @param User
     * @return int
     */
    int updateUser(User user);
}
